#!/usr/bin/env bash

curl -H "content-type:application/json" -XPOST http://localhost:5814/ac-julink-warehouse/migrate -d '{"domain": "1", "batchSize": 50000}'

#for i in `seq 1 9`; do mysql -uroot -p$PASSWD_DEV -h$HOST_DEV -e "drop table julink_warehouse.16_julink_warehouse_$i;"; done

select code, device_id, sub_domain, public_key, status, create_time, modify_time, batch_code from 1_device_warehouse where device_id IS NOT NULL and CHAR_LENGTH(device_id) = 36 and device_id like '86%' order by `device_id` ASC limit 1
